package com.class05;

import com.class05.statics.StaticProxyCalculator;

/**
 * @ClassDescription:
 * @JdkVersion: 17
 * @Author: yxy
 * @Created: 2023/10/31 20:11
 */
public class UseAop {
    public static void main(String[] args) {
//        目标类
        Calculator calculator = new CalculatorPureImpl();
//        中介
        StaticProxyCalculator proxy =
                new StaticProxyCalculator(calculator);
        //调用
        int add = proxy.add(1, 1);
        System.out.println("add = " + add);
        

    }
}
